<?php
	include_once 'connection.php';
	
	class ImagesModel {
		
	  private $connection = null;
	   
	 	public function __construct(){
	 		$this->connection = Connection::getInstance();
	 	}
	 		 
		public function createImage($query){
			return $this->connection->insertRow($query);
		}
		
		public function searchApplicationIcon($query){
			return $this->connection->complexSelect($query);
		}
		
		public function searchImageId($query){
			return $this->connection->searchSelect($query);	
		}
	}

?>